package com.sourceQ.system.dto.message;

import com.sourceQ.common.core.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: SourceQ
 * @create: 2024-04-23 10:07
 * @Description:
 */
@Data
@Schema(description = "管理后台 - 短信日志分页 Request VO")
public class SmsLogPageReqDTO implements Serializable {
    @Schema(description = "短信渠道编号", example = "10")
    private Long channelId;

    @Schema(description = "模板编号", example = "20")
    private Long templateId;

    @Schema(description = "手机号", example = "15601691300")
    private String mobile;

    @Schema(description = "发送状态，参见 SmsSendStatusEnum 枚举类", example = "1")
    private Integer sendStatus;

    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @Schema(description = "发送时间")
    private LocalDateTime sendTimeBegin;
    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @Schema(description = "发送时间")
    private LocalDateTime sendTimeEnd;

    @Schema(description = "接收状态，参见 SmsReceiveStatusEnum 枚举类", example = "0")
    private Integer receiveStatus;

    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @Schema(description = "接收时间")
    private LocalDateTime receiveTimeBegin;

    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @Schema(description = "接收时间")
    private LocalDateTime receiveTimeEnd;
}
